using System;
using System.Runtime.CompilerServices;
using System.Windows.Controls;
namespace Microsoft.Phone.Controls.Maps.Overlays
{
	public abstract class Overlay : Control
	{
		public event EventHandler TemplateApplied
		{
			[MethodImpl(32)]
			add
			{
				this.TemplateApplied = (EventHandler)Delegate.Combine(this.TemplateApplied, value);
			}
			[MethodImpl(32)]
			remove
			{
				this.TemplateApplied = (EventHandler)Delegate.Remove(this.TemplateApplied, value);
			}
		}
		protected void FireTemplateApplied()
		{
			EventHandler templateApplied = this.TemplateApplied;
			if (templateApplied != null)
			{
				templateApplied.Invoke(this, EventArgs.Empty);
			}
		}
	}
}
